from django.contrib import admin
from django.urls import path, re_path, include
from django.conf import settings
from django.views.static import serve

# 使用相对导入
from . import views
# 自动生成路径
from rest_framework.routers import SimpleRouter
from .views import PayView,PaySuccess
router = SimpleRouter()
# 127.0.0.1:8000/order/pay/
router.register('pay',PayView,'PayView')

from .views import PayView
urlpatterns = [
    # path('pay', PayView.as_view()),
    path('success', PaySuccess.as_view()),
]

urlpatterns+=router.urls  # 方式二
